/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.hyjiacan.deadqq.client.i18n;

import java.io.IOException;
import java.util.Locale;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author hyjiacan
 */
public final class I18N {

    private static final Properties p = new Properties();

    static {
        try {
//            p.load(I18N.class.getResourceAsStream(Locale.getDefault() + ".properties"));
            p.load(I18N.class.getResourceAsStream("en_US.properties"));
        } catch (IOException ex) {
            Logger.getLogger(I18N.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public static String getString(String key) {
        return p.getProperty(key.toLowerCase());
    }
}
